package com.alone.test;

import com.alone.jpa.entity.annotation.Enhanced;
import com.alone.jpa.entity.enhancer.GlobalEntityListener;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.*;

/**
 * @author Alone
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Entity
@Table(name = "user")
@EntityListeners(GlobalEntityListener.class)
@Enhanced(isUpdateIgnoreNullValue = false)
public class User extends BaseEntity {

    private String username;

    private String phone;

}
